home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
html
/
vendors
/
tower
/
handoff
< prev
next >
Wrap
Text File
|
1997-06-17
|
804b
|
66 lines
#! /bin/sh
#
# Parse the incoming args and make them available...
#
# WHERE is the destination URL
# FROM is a text string of some sort that ID's the source
# WHO indicates who gets an e-mail notification
#
WHERE="$1"
FROM="$2"
WHO="$3"
export WHERE FROM WHO
#
# Clean them off and set defaults...
#
if [ "$WHERE" = "" ] ; then
WHERE="http://www.tower.com/"
FROM="Some unknown place"
WHO="ivory@tower.com"
fi
if [ "$FROM" = "" ] ; then
FROM="Some unknown place"
WHO="ivory@tower.com"
fi
if [ "$WHO" = "" ] ; then
WHO="ivory@tower.com"
fi
#
# Send some mail...
#
/usr/ucb/mail -s "Handoff: $FROM" $WHO << -EOF1-
A Web handoff seems to have occured!
From: $FROM
To: $WHERE
`env`
-EOF1-
#
# Now do the cross over...
#
echo "Location: $WHERE"
echo ""
exit 0